package com.mhc.haval.dal.mapper.ext;

import com.mhc.haval.bo.DepartmentInfoBO;
import com.mhc.haval.dal.mapper.DepartmentMapper;
import com.mhc.haval.dal.model.DepartmentDO;
import com.mhc.haval.dal.model.StaffDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * MyBatis Ext Mapper for Department.
 */

@Mapper
@Repository
public interface DepartmentExtMapper extends DepartmentMapper {


    List<DepartmentInfoBO> queryByDeptList(Map<String, ?> paramMap);

    List<StaffDO> queryStaffByDept(Map<String, ?> paramMap);

    /**
     * 查询部门
     * @param deptId
     * @return
     */
    DepartmentInfoBO queryByDeptInfo(Long deptId);
}